<template>
  <div id="app">
    <div class="tabbar">
      <router-link to="/home"><i class="fa fa-home"></i><div>首页</div></router-link>
      <router-link to="/data"><i class="fa fa-paper-plane-o"></i><div>发表</div></router-link>
      <router-link to="/good"><i class="fa fa-envelope-o"></i><div>消息</div></router-link>
      <router-link to="/user"><i class="fa fa-user-o"></i><div>我的</div></router-link>

    </div>
    <router-view></router-view>
  </div>
</template>

<script>
import Home from "./pages/home"
  export default {
          components:{
            Home
          }
  }

</script>

<style scoped>
.tabbar{
  height: 49px;
  /*line-height: 49px;*/
  position: fixed;
  bottom:0;
  background: white;
  border-top: 1px solid #ccc;
  text-align: center;
  width: 100%;
  display: flex;
  font-size: 13px
  
}
.tabbar a{
  flex-basis: 25%;
  color:#222;
  line-height: 23px
}

.is-active{
  color:#86c00d!important
}
</style>